package com.bawei.module_mine.model.service

import com.bawei.lib_net.RetrofitFactory
import com.bawei.module_mine.model.api.AddressRegionApi

class AddressRegionService {
    private val api by lazy { RetrofitFactory.getRetrofitFactory().create(AddressRegionApi::class.java) }
    suspend fun getProvinces() = api.getProvinces()
    suspend fun getCities(provinceId: String) = api.getCities(provinceId)
    suspend fun getDistricts(cityId: String) = api.getDistricts(cityId)
} 